-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Send message to DLQ after correct number of attempts #325
Send message to DLQ after correct number of attempts #325
Conversation
95c4ab3
to
6063fc1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry it took me so long to get to this! It's been a hectic time of year. Regardless, thanks for pitching in on this issue. I have one minor question there then the code looks good. Could you throw in a test for it as well? Then I think it's all set.
6063fc1
to
a39305c
Compare
No problem at all! Open Source should be fun so please don't feel pressured :) I tweaked the existing test to make it fail without the fix and added a new test to test the loop counter adjustment in |
@Thomasvdam This looks awesome, thanks for sticking with it for so long! This looks great to me! Though I see that I probably burned you by moving some things around, would you mind rebasing? I assume that would fix your tests there. Otherwise, I'm ready to do the merge deed! Are you anxiously awaited this? I had to get some fixes into the 0.5.1 release, which just went out, so I missed sneaking you into that, but I could make this 0.5.2 if you're needing it, like, yesterday? |
No rush from my end. I'm using my fork so please release at your own pace. I'll try the rebase now |
a39305c
to
5bca14b
Compare
Ah I didn't know about the |
Ah yeah, that gets me too. Let me know if you get stuck after trying it with that and I'll have a look and see if I can shake anything loose. Thank you! |
5bca14b
to
cda9b09
Compare
I think this should get the tests to pass reliably. It feels a little hacky though, if you have pointers on a proper way to do this I'd love to learn :) |
@Thomasvdam Yeah, I think to rework it, which is worthy, would take some significant refactoring. What you've got is good, since we were never calling |
I just noticed you released the JSON API update, congratulations and thanks for your time and effort!
I was trying it out today and everything seems to work as expected, except for DLQ MaxReceiveCounts. As described in #263 in AWS the attribute describes the number of attempts before sending a message to the DLQ, not the number of retries.
There was also a small error when iterating over the messages where when a message that got sent to the DLQ would skip the next message in that queue for the timeout check in that iteration.
Closes: #263